<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>设备维修后台管理系统</title>
    <meta name="keywords" content="设备维修后台管理">
    <meta name="description" content="设备综合管理平台">
    <link rel="stylesheet" href="../static/bootstrap/bootstrap.min.css">
    <link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css">
    <!--自定义css-->
    <link rel="stylesheet" href="../static/common/index.css">
    <script type="text/javascript">
        if (sessionStorage.Token == undefined) {
            window.location.href = "login.html";
        }
    </script>
</head>
<body>
<div id="side-nav">
    <nav class="navbar navbar-inverse top-navbar">
        <div class="container-fluid">
            <div class="navbar-header">
                <img class="img-responsive logo" src="../static/images/logo.png">
            </div>
            <div>
                <ul class="nav navbar-nav navbar-right">
                    <li><a id="present-time">时间</a></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="fa fa-user-circle"></i> {{username}} <b class="caret"></b>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="#">用户信息</a></li>
                        </ul>
                    </li>
                    <li><a href="login.html"><i class="fa fa-sign-out"></i>退出</a></li>
                </ul>
            </div>
        </div>
    </nav>
    <div class="container">
        <div class="row">
            <div class="col-xs-1 nav-div">
                <div class="side-nav">
                    <a v-bind:href="homeUrl" target="main" class="side-nav-active side-nav-item">
                        <i class="fa fa-home fa-3x"></i><br>主页
                    </a>
                    <a href="repair-bill/repair-bill.html" target="main" class="side-nav-item">
                        <i class="fa fa-calendar-plus-o fa-3x"></i><br>我的派修单
                    </a>
                    <a v-show="roleId <= 2" href="graphic-statistics/graphic-statistics.html" target="main"
                       class="side-nav-item">
                        <i class="fa fa-bar-chart fa-3x"></i><br>图表统计
                    </a>
                    <a href="troubles/trouble.html" target="main" class="side-nav-item">
                        <i class="fa fa-info-circle fa-3x"></i><br>故障管理
                    </a>
                    <a v-show="roleId <= 2" href="devices/device.html" target="main" class="side-nav-item">
                        <i class="fa fa-video-camera fa-3x"></i><br>资产管理
                    </a>
                    <a v-show="roleId <= 1" href="region/region.html" target="main" class="side-nav-item">
                        <i class="fa fa-globe fa-3x"></i><br>区域管理
                    </a>
                    <a v-show="roleId <= 1" href="users/user-manage.html" target="main" class="side-nav-item">
                        <i class="fa fa-users fa-3x"></i><br>权限管理
                    </a>
                    <a v-show="roleId <= 1" href="basic-data/basic-data.html" target="main" class="side-nav-item">
                        <i class="fa fa-cog fa-4x"></i><br>基础信息
                    </a>
                </div>
            </div>
            <div class="col-xs-11 iframe-div">
                <iframe class="myiframe" name="main" v-bind:src="homeUrl">

                </iframe>
            </div>
        </div>
    </div>
</div>
</body>
<script src="../static/jquery/jquery.min.js"></script>
<script src="../static/bootstrap/bootstrap.min.js"></script>
<script src="../static/vue/vue.min.js"></script>
<!--自定义js-->
<script src="../static/common/index.js"></script>
</html>